package ipad.asia.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import lombok.Data;
import java.time.LocalDateTime;
import lombok.experimental.Accessors;
import java.math.BigDecimal;

/**
 * @Description  
 * @Author  冯东旺
 * @Date 2021-04-20 22:03:47 
 */

@Entity
@Data
@Accessors(chain = true)
@Table ( name ="seckill_product")
public class SeckillProduct {


	@Id
   @Column(name = "id" )
	private int id;

	/**
	 * 价格
	 */
   @Column(name = "price" )
	private Float price;

	/**
	 * 商品id
	 */
   @Column(name = "product_id" )
	private int productId;

	/**
	 * 数量
	 */
   @Column(name = "number" )
	private int number;


	/**
	 * 开始数量
	 */
	@Column(name = "number_start" )
	private int numberStart;


	/**
	 * 乐观锁所用的版本号
	 */
   @Column(name = "version" )
	private int version;

   @Column(name = "date_end" )
	private String dateEnd;

   @Column(name = "date_start" )
	private String dateStart;

}
